package com.lightdz.tshirtdz.model.entity;

import java.sql.Date;
import java.sql.Timestamp;
import java.util.Objects;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 10:05 10/08/2018
 * @ Modified By：
 */

public class FavoriteEntity {
    private int tid;
    private String wxid;
    private long pid;
    private Timestamp createtime;
    private Integer status;
    private Timestamp updatetime;

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public long getPid() {
        return pid;
    }

    public void setPid(long pid) {
        this.pid = pid;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        FavoriteEntity that = (FavoriteEntity) o;
        return tid == that.tid &&
                Objects.equals(wxid, that.wxid) &&
                Objects.equals(pid, that.pid) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(status, that.status);
    }

    @Override
    public int hashCode() {

        return Objects.hash(tid, wxid, pid, createtime, status);
    }
}
